package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ProductAttrRequest对象", description="根据商品规格id和购买数量查询30km内门店是否有货")
public class ProductAttrRequest {

    @ApiModelProperty(value = "经纬度")
    @NotBlank(message = "经纬度不能为空")
    private String position;

    @ApiModelProperty(value = "商品规格id和数量集合")
    @NotEmpty(message = "商品规格id和数量集合不能为空")
    @Valid
    private List<ProductAttrAndNumberRequest> shopSpecIdAndNumberList;

    @ApiModelProperty(value = "城市")
    private String city;
}

